package com.ashbur.lottery.domain.support.ids.policy;

import com.ashbur.lottery.domain.support.ids.IIdGenerator;
import org.apache.commons.lang3.RandomStringUtils;
import org.springframework.stereotype.Component;

/**
 * @author : Eumenides
 * @Description : 工具类生成 org.apache.commons.lang3.RandomStringUtils
 * @date : 2022/8/20
 * @Copyright ： 公众号：菜鸟的大厂梦
 */
@Component
public class RandomNumeric implements IIdGenerator {
    @Override
    public long nextId() {
        return Long.parseLong(RandomStringUtils.randomNumeric(11));
    }
}
